import request from '@/utils/request'
// request.post() 的返回值是 promise 对象

export const register = data => request.post('/h5/user/register', data)

export const login = data => request.post('/h5/user/login', data)

// 获取用户信息
export const getUserInfo = () => {
  return request('/h5/user/currentUser')
}
